// @ts-ignore
/* eslint-disable */
import { OpenApi as request } from "@/utils/request";

/** 区域列表-懒加载方式（树形） GET /platform/region/lazy */
export async function lazyRegion1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.lazyRegion1Params,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListRegionVo>(
    `/barter-user/platform/region/lazy`,
    {
      method: "GET",
      params: {
        // parentCode has a default value: 0
        parentCode: "0",
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 区域列表-全部（树形） GET /platform/region/listTree */
export async function listTreeRegion1(options?: { [key: string]: any }) {
  return request<API.BaseResponseListRegionVo>(
    `/barter-user/platform/region/listTree`,
    {
      method: "GET",
      ...(options || {}),
    }
  );
}
